<?php


namespace App\HttpController;

use EasySwoole\EasySwoole\Config;
use EasySwoole\Http\AbstractInterface\Controller;

class Index extends Controller
{

    function index()
    {
        $this->response()->write("hello easyswoole 3.x");
    }

    function config(){
        $config = Config::getInstance();
        $this->writeJson(200, $config->getConf(), 'success');
    }

}